Skip to content

Conversation

Sai-teja573
Copy link
Contributor

This commit introduces the stm_cpu test script designed to validate the System Trace Macrocell (STM) functionality on the target platform. The script performs a series of steps including:

  • Verifying required kernel configurations for STM support
  • Mounting configfs and debugfs if not already mounted
  • Creating STM policy directories and enabling ETF sink
  • Loading STM-related kernel modules (stm_heartbeat, stm_console, stm_ftrace)
  • Linking STM source to ftrace and enabling tracing
  • Capturing trace output and validating its presence

The script generates a result file (stm_cpu.res) indicating PASS, FAIL, or SKIP based on the outcome of the test.

Additionally, a detailed README.md is added, covering:

  • Test overview and objectives
  • Usage instructions and prerequisites
  • Result format and sample logs

This test ensures that the STM infrastructure is correctly configured and functional for trace capture on supported platforms.

@Sai-teja573 Sai-teja573 force-pushed the stm_script branch 2 times, most recently from 5b58a52 to f397e3a Compare July 1, 2025 09:04
Includes script to validate STM tracing via kernel configs, module loading, and trace capture. Adds README with usage, prerequisites, and result format.

Signed-off-by: Sai-teja573 <[email protected]>
Copy link
Contributor

@vnarapar vnarapar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vnarapar vnarapar merged commit 0b5d835 into qualcomm-linux:main Jul 21, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants